﻿<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
    <title>微街秀 > 完善登录信息</title>
    <link href="plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
    <link href="plugins/font-awesome-4.3.0/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" href="css/css.css" />
    <link rel="stylesheet" type="text/css" href="css/base.css" />
    <link href="css/gl.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <div>
        <div class="media top-nav-body">
            <div class="media-left" onclick="toUrl('personal.html?change=1');">
                <div class="top-left">
                    <i class="fa fa-angle-left"></i>
                </div>
            </div>
            <div class="media-body">
                <div class="top-title">
                    完善登录信息</div>
            </div>
          
        </div>
    </div>
    <div class="container-fluid mt50">
        <form action="Ajax/User.ashx?ChangeLogin" class="mt20" method="post">
        <input type="hidden" name="login_type" value="4" />
        <input type="number" id="phone" name="phone" placeholder="手机号" mobile="true" class="form-control" />
        <div class="input-group mt10">
            <input type="text" name="code" class="form-control" placeholder="验证码" require="true" tips="请输入验证码" />
            <div id="code" class="input-group-addon">
                <span>获取验证码</span>
            </div>
        </div>
        <div class="form-group has-feedback  mt10">
            <input type="password" name="pwd" id="pwd" placeholder="密码" class="form-control" />
            <div class="form-control-feedback" onclick="showPwd('#pwd',this)">
                <i class="fa fa-eye"></i>
            </div>
        </div>
        <div class="form-group has-feedback  mt10">
            <input type="password" id="repwd" placeholder="确认密码" equal="#pwd" class="form-control" />
            <div class="form-control-feedback" onclick="showPwd('#repwd',this)">
                <i class="fa fa-eye"></i>
            </div>
        </div>
        <div class="form-group has-feedback  mt10">
          说明：完善资料后，下次请用手机号密码登录
        </div>
        <button class="btn btn-normal btn-block mt20">提 交</button>
        <div class="mt10">
            <div class="row">
                <div class="col-xs-6">
                </div>               
            </div>
        </div>
        </form>
    </div>
    <script src="js/jquery-2.1.4.min.js" type="text/javascript"></script>
    <script src="js/jquery-form.js" type="text/javascript"></script>
    <script src="plugins/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
    <script src="js/jquery-submit-1.1.js" type="text/javascript"></script>
    <script src="js/gl-dialog.js" type="text/javascript"></script>
    <script src="js/ajax-data.js"></script>
    <script src="js/base.js"></script>
    <script src="js/gl.js"></script>
    <script>
        $(function () {
            //绑定获取短信验证码按钮
            bindCodeEvent("modify")

            if (getQueryString("phone") != null)
                $("#phone").val(getQueryString("phone"));

            //提交表单
            $('form').submit(function () {
                if (callSubmit(this)) {
                    ajaxSubmit({
                        callback: function (data) {
                            GlToast("操作成功,下次请用手机号登录");
                            SetChange(userid);
                            setTimeout(function () { toUrl("personal.html"); }, 1000);
                        }
                    });
                }
                return false;
            });
        });

        function SetChange(id) {
            var old = getCookie("changelogin");
            if (old == null) old = "";
            if (old.indexOf(id + ",") > -1 || old.indexOf("," + id) > -1) {
            }
            else
                SetCookie("changelogin", old + id + ",", 5);
        }
    </script>
</body>
</html>